﻿using JinfuyuanProject.Entity;
using JinfuyuanProject.Repository;
using JinfuyuanProject.Repository.Interface;
using JinfuyuanProject.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JinfuyuanProject.Service
{
    public class PagesService : IPagesService
    {
        private readonly IPagesRepository _pagesRepository;

        public PagesService(IPagesRepository pagesRepository)
        {
            _pagesRepository = pagesRepository;
        }
        public IQueryable<Pages> GetList()
        {
            return _pagesRepository.GetList();
        }
        public bool Delete(Pages pages)
        {
            return _pagesRepository.Delete(pages);
        }
        public Pages GetModel(int Id)
        {
            return _pagesRepository.GetModel(Id);

        }

        public int Insert(Pages pages)
        {
            return _pagesRepository.Insert(pages);

        }

        public bool Update(Pages pages)
        {
            return _pagesRepository.Update(pages);
        }
    }
}

